Forms in Perl

Here are some perl scripts relevant to the handling of CGI forms. Other perl/html stuff may be found off the perl/html page. Steven Brenner has written at greater length about the utility of Perl for CGI forms. The version of cgi-lib.pl seen here is a dated version; you are encouraged to pick up the latest release.

Perl 5 users may wish to keep abreast of the CGI.pm project headed by Lincoln Stein, which is intended to be a clean replacement for cgi-lib.pl.

In your enthusiasm, don't forget about security!

I've been besieged by requests for mailto forms, so I wrote one. Anyone in the world can submit to http://icg.resnet.upenn.edu/mailto.cgi.

cgi-lib.pl
Steven Brenner's script turns messy input into an associative array of keys and values. It provides two sample functions to print the output.
generic.pl
a generic perl script, similar in spirit to the standard post-query. calls cgi-lib.pl
form.html
a generic form calling generic.pl. try it.

Colophon

Disclaimer: This document in no way represents the University of Pennsylvania. All opinions and errors are mine alone.
mengwong@pobox.com